package android_rteditor.customsortricheditor;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;

import com.bumptech.glide.Glide;

import java.io.File;

/**
 * 图片预览
 * @author panxiaodong01
 * @since 2017/9/11
 */

public class PhotoPreviewActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.image_preview_activity);
        String url = getIntent().getStringExtra("url");
        ImageView imageView = (ImageView) findViewById(R.id.image);
        Glide.with(this).load(new File(url)).error(R.mipmap.ic_launcher).into(imageView);
    }

}
